package com.lijianlove.keeplearning.dr.config;

import com.lijianlove.keeplearning.dr.support.reject.RejectStrategy;
import com.lijianlove.keeplearning.dr.support.reject.RejectStrategys;
import com.lijianlove.keeplearning.dr.support.storage.MemoryStorageStrtegy;
import com.lijianlove.keeplearning.dr.support.storage.StorageStrategy;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @author lijian
 * @date 2019/4/30 下午2:04
 */
@Data
@Component
//@ConfigurationProperties("dr")
public class DRConfig {
    /**
     * 拒绝策略
     */
    private RejectStrategy rejectStrategy = new RejectStrategys.NullStrategy();
    /**
     * 存储策略
     */
    private StorageStrategy storageStrategy = new MemoryStorageStrtegy();
}
